how to add attribute to class python

38

setattr(objectClass, "newAttribute", "new attr")

Comments

Submit
0 Comments